home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / PAS_0793 / CHG-DTR.PAS < prev    next >
Pascal/Delphi Source File  |  1993-08-01  |  709b  |  23 lines

  1. {─ Fido Pascal Conference ────────────────────────────────────────────── PASCAL ─
  2. Msg  : 312 of 326
  3. From : Brian Dhatt                         1:3648/2.5           23 Jul 93  13:58
  4. To   : Paul Nixon
  5. Subj : Raise/Lower DTR
  6. ────────────────────────────────────────────────────────────────────────────────
  7. Tuesday July 20 1993 23:43, Paul Nixon wrote to Peter Ogden:
  8.  
  9.  PN> I'm looking for a way to raise DTR on any com port.  Can you help??
  10.  
  11. Try this code:}
  12.  
  13. Const BaseAddress = $2F8;  {com2}   {com1=$03F8}
  14.  
  15. Procedure RaiseDTR;
  16.   Begin
  17.     Port[BaseAddress+4] := Port[BaseAddress+4] Or $01;
  18.   End;
  19.  
  20. Procedure LowerDTR;
  21.   Begin
  22.     Port[BaseAddress+4] := Port[BaseAddress+4] And $FE;
  23.   End;